$(document).ready(function(){ 
  
    $('#leftTableStart').click(function(){ 
        window.location.href="index.php" 
    }) 
    $('#leftTableRycerskaBrac').click(function(){ 
        window.location.href="rycerska-brac.php" 
    }) 
    $('#leftTableGaleria').click(function(){ 
        window.location.href="galeria.php" 
    })
    $('#leftTableWydarzenia').click(function(){ 
        window.location.href="wydarzenia.php" 
    })
    $('#topLink1').click(function(){ 
        window.location.href="oNas.php" 
    }) 
    
    $('#topLink2').click(function(){ 
        window.location.href="lucznictwo.php" 
    }) 
   
    $('#topLink3').click(function(){ 
        window.location.href="rycerstwo.php" 
    }) 

    $('#topLink4').click(function(){ 
        window.location.href="historia.php" 
    }) 
   
    $('#topLink5').click(function(){ 
        window.location.href="kontakt.php" 
    }) 
    
    function onWatermarkTextBoxFocus()
    {
        if (this.value == this.watermark)
        {
            this.value = "";
            this.className = this.className.replace("watermarkTextBox", "");
        }
    }
    function onWatermarkTextBoxBlur()
    {
        if (this.value.length == 0)
        {
            this.value = this.watermark;
            this.className += " watermarkTextBox";
        }
    }

    function initWatermarkTextBoxes()
    {
        var inputs = document.getElementsByTagName("input");
        for (i = 0; i <inputs.length; ++i)
            if (inputs[i].type == "text"
                && inputs[i].className.indexOf("watermarkTextBox") != -1)
                {
                inputs[i].watermark = inputs[i].value;
                inputs[i].onfocus = onWatermarkTextBoxFocus;
                inputs[i].onblur = onWatermarkTextBoxBlur;
            }
    }
    window.onload = initWatermarkTextBoxes;
   
    
});
